package com.sunwayhorizo.health.business.integration.model;

import java.io.Serializable;
import java.sql.*;
import org.hibernate.validator.constraints.*;

public class PatientInfo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int id;
	
	/**
	 * 患者编码
	 */
	@NotEmpty
	@Length(max=200)
	private String nature_id;
	/**
	 * 患者姓名
	 */
	@NotEmpty
	@Length(max=240)
	private String nature_name;
	/**
	 * 拼音码简拼
	 */
	@Length(max=240)
	private String pinyin_code;
	/**
	 * 五笔码
	 */
	@Length(max=50)
	private String wubi_code;
	/**
	 * 拼音码全拼
	 */
	@Length(max=240)
	private String fullspell_code;
	/**
	 * 出生日期
	 */
	@Length(min=8, max=8)
	private String nature_birthdate;
	/**
	 * 婚史
	 */
	@Length(max=50)
	private String marry_flag;
	/**
	 * 家庭地址
	 */
	@Length(max=500)
	private String societyhome_address;
	/**
	 * 邮编
	 */
	//@Length(max=10)
	private String societyhome_code;
	/**
	 * 手机
	 */
//	@Length(max=20)
	private String society_mobile;
	/**
	 * 电话
	 */
	//@Length(max=20)
	private String society_phone;
	/**
	 * E-mail
	 */
	@Length(max=100)
	// @Email
	private String society_email;
	/**
	 * 患者描述（备注）
	 */
	private Clob naturedesc;
	/**
	 * 籍贯
	 */
	@Length(max=100)
	private String nature_place;
	/**
	 * 性别
	 */
	@Length(max=200)
	private String nature_sex;
	/**
	 * 国籍
	 */
	@Length(max=50)
	private String nature_nationality;
	/**
	 * 民族
	 */
	@Length(max=50)
	private String nature_nation;

	/**
	 * 身份
	 */
	@Length(max=50)
	private String nature_identity;
	/**
	 * 职业
	 */
	@Length(max=50)
	private String nature_work;
	/**
	 * 证件号
	 */
	@Length(max=2000)
	private String medical_cord;
	/**
	 * 医保号
	 */
	@Length(max=2000)
	private String insurance_cord;
	
	/**
	 * 新建时间
	 */
	private Timestamp insert_time;
	
	/**
	 * 更新时间
	 */
	private Timestamp update_time;

	public PatientInfo(String nature_id, String nature_name,
			String pinyin_code, String wubi_code, String fullspell_code,
			String nature_birthdate, String marry_flag,
			String societyhome_address, String societyhome_code,
			String society_mobile, String society_phone, String society_email,
			Clob naturedesc, String nature_place, String nature_sex,
			String nature_nationality, String nature_nation,
			String nature_identity, String nature_work, String medical_cord,
			String insurance_cord) {
		super();
		this.nature_id = nature_id;
		this.nature_name = nature_name;
		this.pinyin_code = pinyin_code;
		this.wubi_code = wubi_code;
		this.fullspell_code = fullspell_code;
		this.nature_birthdate = nature_birthdate;
		this.marry_flag = marry_flag;
		this.societyhome_address = societyhome_address;
		this.societyhome_code = societyhome_code;
		this.society_mobile = society_mobile;
		this.society_phone = society_phone;
		this.society_email = society_email;
		this.naturedesc = naturedesc;
		this.nature_place = nature_place;
		this.nature_sex = nature_sex;
		this.nature_nationality = nature_nationality;
		this.nature_nation = nature_nation;
		this.nature_identity = nature_identity;
		this.nature_work = nature_work;
		this.medical_cord = medical_cord;
		this.insurance_cord = insurance_cord;
	}

	public PatientInfo(String doNotUseThisMethod) {
		this.nature_id = "222222";
		this.nature_name = "哀笨伟";
		this.pinyin_code = "AZHW";
		this.wubi_code = "wubiCode";
		this.fullspell_code = "aizhongwei";
		this.nature_birthdate = "19910401";
		this.marry_flag = "30|丧偶";
		this.societyhome_address = "清华池锅炉房";
		this.societyhome_code = "100010";
		this.society_mobile = "society_mobile";
		this.society_phone = "1344444444";
		this.society_email = "azw@yahoo.cn";
		this.naturedesc = null;
		this.nature_place = "火星人";
		this.nature_sex = "5|女性改（变）为男性";
		this.nature_nationality = "GQ|赤道几内亚";
		this.nature_nation = "57|外国血统";
		this.nature_identity = "70|无业人员";
		this.nature_work = "Y|不便分类的其他从业人员";
		this.medical_cord = "居民身份证|80523198610072591,护照|8181642535017";
		this.insurance_cord = "82015410073545|商业保险|安定医院|1";
	}

	public PatientInfo() {
		super();
	}

	public String getNature_id() {
		return nature_id;
	}

	public void setNature_id(String nature_id) {
		this.nature_id = nature_id;
	}

	public String getNature_name() {
		return nature_name;
	}

	public void setNature_name(String nature_name) {
		this.nature_name = nature_name;
	}

	public String getPinyin_code() {
		return pinyin_code;
	}

	public void setPinyin_code(String pinyin_code) {
		this.pinyin_code = pinyin_code;
	}

	public String getWubi_code() {
		return wubi_code;
	}

	public void setWubi_code(String wubi_code) {
		this.wubi_code = wubi_code;
	}

	public String getFullspell_code() {
		return fullspell_code;
	}

	public void setFullspell_code(String fullspell_code) {
		this.fullspell_code = fullspell_code;
	}

	public String getNature_birthdate() {
		return nature_birthdate;
	}

	public void setNature_birthdate(String nature_birthdate) {
		this.nature_birthdate = nature_birthdate;
	}

	public String getMarry_flag() {
		return marry_flag;
	}

	public void setMarry_flag(String marry_flag) {
		this.marry_flag = marry_flag;
	}

	public String getSocietyhome_address() {
		return societyhome_address;
	}

	public void setSocietyhome_address(String societyhome_address) {
		this.societyhome_address = societyhome_address;
	}

	public String getSocietyhome_code() {
		return societyhome_code;
	}

	public void setSocietyhome_code(String societyhome_code) {
		this.societyhome_code = societyhome_code;
	}

	public String getSociety_mobile() {
		return society_mobile;
	}

	public void setSociety_mobile(String society_mobile) {
		this.society_mobile = society_mobile;
	}

	public String getSociety_phone() {
		return society_phone;
	}

	public void setSociety_phone(String society_phone) {
		this.society_phone = society_phone;
	}

	public String getSociety_email() {
		return society_email;
	}

	public void setSociety_email(String society_email) {
		this.society_email = society_email;
	}

	public Clob getNaturedesc() {
		return naturedesc;
	}

	public void setNaturedesc(Clob naturedesc) {
		this.naturedesc = naturedesc;
	}

	public String getNature_place() {
		return nature_place;
	}

	public void setNature_place(String nature_place) {
		this.nature_place = nature_place;
	}

	public String getNature_sex() {
		return nature_sex;
	}

	public void setNature_sex(String nature_sex) {
		this.nature_sex = nature_sex;
	}

	public String getNature_nationality() {
		return nature_nationality;
	}

	public void setNature_nationality(String nature_nationality) {
		this.nature_nationality = nature_nationality;
	}

	public String getNature_nation() {
		return nature_nation;
	}

	public void setNature_nation(String nature_nation) {
		this.nature_nation = nature_nation;
	}

	public String getNature_identity() {
		return nature_identity;
	}

	public void setNature_identity(String nature_identity) {
		this.nature_identity = nature_identity;
	}

	public String getNature_work() {
		return nature_work;
	}

	public void setNature_work(String nature_work) {
		this.nature_work = nature_work;
	}

	public String getMedical_cord() {
		return medical_cord;
	}

	public void setMedical_cord(String medical_cord) {
		this.medical_cord = medical_cord;
	}

	public String getInsurance_cord() {
		return insurance_cord;
	}

	public void setInsurance_cord(String insurance_cord) {
		this.insurance_cord = insurance_cord;
	}

	@Override
	public String toString() {
		return "PatientInfo [\n患者编码=" + nature_id + ",\n 患者姓名=" + nature_name
				+ ",\n 拼音码简拼=" + pinyin_code + ",\n 五笔码=" + wubi_code
				+ ",\n 拼音码全拼=" + fullspell_code + ",\n 出生日期="
				+ nature_birthdate + ",\n 婚史=" + marry_flag + ",\n 家庭地址="
				+ societyhome_address + ",\n 邮编=" + societyhome_code
				+ ",\n 手机=" + society_mobile + ",\n 电话=" + society_phone
				+ ",\n E-mail=" + society_email + ",\n 患者描述（备注）=" + naturedesc
				+ ",\n 籍贯=" + nature_place + ",\n 性别=" + nature_sex + ",\n 国籍="
				+ nature_nationality + ",\n 民族=" + nature_nation + ",\n 身份="
				+ nature_identity + ",\n 职业=" + nature_work + ",\n 证件号="
				+ medical_cord + ",\n 医保号=" + insurance_cord + "]";
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public Timestamp getInsert_time() {
		return insert_time;
	}

	public void setInsert_time(Timestamp insert_time) {
		this.insert_time = insert_time;
	}

	public Timestamp getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Timestamp update_time) {
		this.update_time = update_time;
	}


}
